package org.lanqiao.tjut.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lanqiao.tjut.bean.AnnounceEntity;
import org.lanqiao.tjut.bean.ClientEntity;
import org.lanqiao.tjut.bean.PaysEntity;
import org.lanqiao.tjut.bean.UsersEntity;

public interface IUsersDao {
	

	/**
	 * 用户登录查询
	 * 
	 * @param userE
	 *            用户登录信息
	 * @return 登录用户信息集合
	 */
	List<UsersEntity> selectUsersInfo4Login(UsersEntity userE);

	List<UsersEntity> selectUsersInfoByParas(UsersEntity userE);
    
	int saveUserInfo(UsersEntity userE);

	List<UsersEntity> selectUsersInfo(UsersEntity userE);

	UsersEntity getUserInfoById(String uid);
	
	int editUserInfo(UsersEntity userE);
	
	int deleteUserInfo(String uid);
	
	List<ClientEntity> selectClientInfoByParas(@Param("cliE")ClientEntity cliE, @Param("userE")UsersEntity userE);
	
	ClientEntity getClientInfoById(String uid);
	
	int editClientInfo(ClientEntity cliE);
	
	List<ClientEntity> selectClientInfo(ClientEntity cliE);
	
	int savePayInfo(PaysEntity payE);
	
	List<PaysEntity> selectPayInfo(PaysEntity payE);
	
	List<PaysEntity> selectPayInfoByParas(PaysEntity payE);
	
	int addAnnounceInfo(AnnounceEntity anE);
	
	List<AnnounceEntity> contentInfo();
	
	List<AnnounceEntity> contentAllInfo();
}
